/*
 * Copyright (c) 2014 laidian. All Rights Reserved.
 * 
 * @author yaoyuming
 * 
 * @date 2019-11-27 19:45
 */
package com.yao.cloud.provider.controller;

import cn.hutool.core.lang.Console;
import cn.hutool.core.util.StrUtil;
import org.springframework.web.bind.annotation.*;

/**
 * 模拟用户接口，服务提供
 * 
 * @author yaoyuming
 * @date 2019/11/27 19:45
 */
@RestController
@RequestMapping("/user")
public class UserController {

    @RequestMapping(value = "/get/{id}/{name}", method = RequestMethod.GET)
    public String get(@PathVariable("id") Integer id, @PathVariable("name") String name) {
        Console.log("--->id:{}", id);

        return StrUtil.concat(true, "hello world...id : ", id.toString(), "  - name : ", name);
    }

}